<template>
	<view class="main_style">
		<view class="bottom_meau_list" @click="to_menu(1)">首页</view>
		<view class="bottom_meau_list" @click="to_menu(2)">+</view>
		<view class="bottom_meau_list" @click="to_menu(3)">我的</view>
	</view>
</template>

<script>
	export default {
		name:"BottomMenu",
		data() {
			return {
				page_list:{
					1:'first',
					2:'second',
					3:'third'
				}
			};
		},
		methods: {
			to_menu(i) {
				
				let page_name=this.page_list[i]
				// this.title='去组队'
				uni.redirectTo({
					url:'../../pages/menu_'+page_name+'/menu_'+page_name,
				})
				console.log("跳转菜单"+i)
			}
		},
	}
</script>

<style scoped>
	.main_style{
		height: 100rpx;
		width: 100%;
		background-color: skyblue;
		position:fixed;
		display: flex;
		bottom:0;
		z-index:999;
	}
	.bottom_meau_list{
		 flex: 1;
		 text-align: center;
		 line-height: 100rpx;
	}
</style>